package demo.boat.response;

public enum ResultCode implements CustomizeResultCode{

    SUCCESS(200, "成功"),
    ERROR(201, "失败"),
    INTERNAL_SERVER_ERROR(500, "服务器错误"),
    VVL_NOT_FOUND(301, "船只信息不存在"),
    ;
    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public Integer getCode() {
        return code;
    }
    @Override
    public String getMessage() {
        return message;
    }
}
